<?php
    session_destroy();
    unset($_SESSION);
    $_SESSION['secure']="";
    echo "<script type=text/javascript> window.location = '../index.php'; </script>"; 
    ?>